<{include file="admin:common/header.html"}>
<div class="page-title">
    <table width="100%" align="center" cellpadding="0" cellspacing="0" >
      <tr>
        <td width="30" align="right"><img src="<{$pager.url}>/images/main-h5-ico.gif" alt="" /></td>
        <th><{$MOD.title}></th>
        <td align="right">&nbsp;<{link ctl="system/theme:index" class="button" title="返回模板管理"}><td width="15"></td>
      </tr>
    </table>
</div>
<div class="page-data">
    <table width="100%" border="0" cellspacing="0" class="table-data form">
        <tr>
            <th class="w-150" rowspan="3"><img  src="../themes/<{$detail.theme}>/<{$detail.thumb}>" photo="../themes/<{$detail.theme}>/<{$detail.thumb}>" class="wh-100"/></th>
            <td><{$nowtmpl}></td>
        </tr>
        <tr><td><{$detail.title}>(<{$detail.theme}>)</td></tr>
        <tr>
            <td>
                <{if $tmpldir != $theme }>
                <{link ctl="system/theme:detail" arg0=$theme_id arg1=$uptheme class="button" title="上一级"}>
                <{link ctl="system/theme:detail" arg0=$theme_id class="button" title="回到首页"}>
                <{else}>
                <{link ctl="system/theme:index" class="button" title="更换模板"}>
                <{/if}>
            </td>
        </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" class="table-data table">
        <tr>
            <th>文件名</th>
            <th class="w-150">文件大小</th>
            <th class="w-150">最新修改时间</th>
            <th class="w-150">操作</th>
        </tr>       
        <{foreach from=$tmpls item=item}>
        <tr>
            <td>
                <{if $item.type == 'dir'}>
                <img src="<{$pager.res}>/images/icon/dir.jpg" width="20" height="20"/><a href="/admin/?system/theme-detail-<{$theme_id}>-<{$item.url}>.html"><{$item.basename}></a>
                <{else}>
                <img src="<{$pager.res}>/images/icon/file.jpg" width="20" height="20"/><{$item.basename}>
                <{/if}>
            </td>                 
            <td><{if $item.type == 'dir'}>目录<{else}><{$item.size|format:"size"}><{/if}></td><td><{if $item.type == 'dir'}>--<{else}><{$item.time|format}><{/if}></td>
            <td>    
                 <{if $item.type == 'dir'}>
                 <{link ctl="system/theme:detail" arg0=$theme_id arg1=$item.url class="button" title="查看"}>
                 <{else}>   
                    <{link ctl="system/theme:tmpledit" arg0=$theme_id arg1=$item.url class="button" title="编辑"}>
                    <{link ctl="system/theme:tmplbak" arg0=$theme_id arg1=$item.url width="mini:600" load="mini:还原文件备份" class="button" title="还原"}>
                 <{/if}>
            </td>
        </tr>
        <{/foreach}>      
    </table>
</div>
<{include file="admin:common/footer.html"}>